package kau.dao;

import java.util.ArrayList;

import kau.exception.DuplicationException;
import kau.exception.RecordNotFoundException;
import kau.vo.Writing;

public interface WritingDAOIF {

	public abstract void insert(Writing writing) throws DuplicationException;

	public abstract void update(Writing writing) throws RecordNotFoundException;

	public abstract void delete(int wNumber) throws RecordNotFoundException;

	public abstract Writing getWriting(int wNumber)
			throws RecordNotFoundException;

	// 그룹별 글보기
	public abstract ArrayList<Writing> getAllWritings(int bNumber);

	// 다운로드 경로 가져오기
	public abstract String download(int wNumber) throws RecordNotFoundException;

	// 검색
	// 작성자 검색 custIdSearch
	public abstract ArrayList<Writing> custNameSearch(String custName,int bNumber);

	// 글제목 검색 titleSearch
	public abstract ArrayList<Writing> titleSearch(String title,int bNumber);

	// 글내용 검색 contentSearch
	public abstract ArrayList<Writing> contentSearch(String content,int bNumber);
	
	public abstract ArrayList<Writing> getPageWritings(int bNumber,int page,int limit);
	
	public abstract int getListCount(int bNumber);

	public abstract int getMaxwNumber();

	public abstract void hitsUp(int wNumber);
}
